package Exercices;

public class granjeroTibeious {

    public static void main(String[] args) {
        granjeroTibeious granjeroTiberiousClass = new granjeroTibeious();
        granjeroTiberiousClass.getFarmPlot(4, 3);
    }
    
    public String[] getFarmPlot(int numberRows, int numberColumns) {                
        
        int incrementDate = 0;        

        String[] arrayString = new String[numberRows * numberColumns];
        int digitCounter = String.valueOf(numberRows * numberColumns).length();
        
        for (int indexi = 0; indexi < numberRows; indexi++) {                       
            for (int indexj = 0; indexj < numberColumns; indexj++) {                
                incrementDate++;
                
                for(int indexator = 0; indexator<incrementDate-(String.valueOf(numberRows * numberColumns)+1).length(); indexator++) {
                    incrementDate++;                    
                    System.out.println(""+incrementDate);
                }                
            }
        }                               
        return null;
    }
}
